layout.tsx 826 B

123456789101112131415161718192021222324252627282930
  1. import Header from "@/components/Header";
  2. import { getTranslations } from "next-intl/server";
  3. import { ReactNode, Suspense } from "react";
  4. import DownloadSection from "../[[...share]]/_home/DownloadSection";
  5. export const generateMetadata = async () => {
  6. const t = await getTranslations("titles");
  7. return {
  8. title: t("profile"),
  9. };
  10. };
  11. export default async function LocaleLayout({
  12. children,
  13. params: { locale },
  14. }: {
  15. children: ReactNode;
  16. params: { locale: string };
  17. }) {
  18. return (
  19. <div className="profilPage h-[100%] bg-[#0b0e10]">
  20. <Suspense>
  21. <DownloadSection />
  22. </Suspense>
  23. <Suspense>
  24. <Header></Header>
  25. </Suspense>
  26. <main className={"main-header"}>{children}</main>
  27. </div>
  28. );
  29. }